package com.glory.erp.invoice.goods.bean;

import com.glory.erp.invoice.goodstype.bean.GoodsType;
import com.glory.erp.util.FormatUtil;

/**
 * @Description: 商品
 * @Title: Goods.java
 * @Author: 樊双峰
 * @Date: 2018年5月26日 下午2:49:00
 * @Version V1.0
 */
public class Goods {

	/**
	 * id
	 */
	private Long uuid;
	
	/**
	 * 商品名
	 */
	private String name;
	
	/**
	 * 产地
	 */
	private String origin;
	
	/**
	 * 厂商
	 */
	private String producer;
	
	/**
	 * 单位
	 */
	private String unit;
	
	/**
	 * 进货单价
	 */
	private Double inPrice;
	private String inPriceMin;
	private String inPriceMax;
	
	/**
	 * 进货单价 视图值
	 */
	private String inPriceView;


	/**
	 * 销售单价
	 */
	private Double outPrice;
	private String outPriceMin;
	private String outPriceMax;
	
	/**
	 * 销售单价 视图值
	 */
	private String outPriceView;
	
	/**
	 * 商品使用频度
	 */
	private Integer useNum;
	
	/**
	 * 商品最小数
	 */
	private Integer minNum;
	
	/**
	 * 商品最大数
	 */
	private Integer maxNum;
	
	/**
	 * 商品类别 多对一
	 */
	private GoodsType goodsType;
	
	public Goods() {
	}

	public Long getUuid() {
		return uuid;
	}

	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public String getProducer() {
		return producer;
	}

	public void setProducer(String producer) {
		this.producer = producer;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Double getInPrice() {
		return inPrice;
	}

	public void setInPrice(Double inPrice) {
		this.inPrice = inPrice;
		this.inPriceView = FormatUtil.formatMoney(inPrice);
	}

	public Double getOutPrice() {
		return outPrice;
	}

	public void setOutPrice(Double outPrice) {
		this.outPrice = outPrice;
		this.outPriceView = FormatUtil.formatMoney(outPrice);
	}

	public GoodsType getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(GoodsType goodsType) {
		this.goodsType = goodsType;
	}

	public String getInPriceView() {
		return inPriceView;
	}

	public String getOutPriceView() {
		return outPriceView;
	}

	public Integer getUseNum() {
		return useNum;
	}

	public void setUseNum(Integer useNum) {
		this.useNum = useNum;
	}

	public Integer getMinNum() {
		return minNum;
	}

	public void setMinNum(Integer minNum) {
		this.minNum = minNum;
	}

	public Integer getMaxNum() {
		return maxNum;
	}

	public void setMaxNum(Integer maxNum) {
		this.maxNum = maxNum;
	}
	
	public String getInPriceMin() {
		return inPriceMin;
	}

	public String getInPriceMax() {
		return inPriceMax;
	}

	public String getOutPriceMin() {
		return outPriceMin;
	}

	public String getOutPriceMax() {
		return outPriceMax;
	}

	public void setInPriceMin(String inPriceMin) {
		this.inPriceMin = inPriceMin;
	}

	public void setInPriceMax(String inPriceMax) {
		this.inPriceMax = inPriceMax;
	}

	public void setOutPriceMin(String outPriceMin) {
		this.outPriceMin = outPriceMin;
	}

	public void setOutPriceMax(String outPriceMax) {
		this.outPriceMax = outPriceMax;
	}
}